package com.gwctv.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Mapper 表是mapper(dto)持久层
 */
@Mapper
public interface SetmealDishMapper {
    /**
     * 根据菜品id查询对应的套餐id
     * @param dishIds
     * @return List<long> 将查询结果封装在List集合中
     */
    // select setmeal_id from setmeal_dish where dish_id in (1,2,3,...)
    public abstract List<Long> getSetmealIdsByDishIds(List<Long> dishIds);
}
